import exchangesort.Bubble;
import exchangesort.Quick;
import insertsort.Insert;
import insertsort.Shell;
import selectsort.Heap;
import selectsort.Select;

import java.util.Arrays;

public class Test {

    public static void main(String[] args) {
        Quick quick = new Quick();
       int[] arr = {9, 86, 17, 116, 55, 4, 3, 222, 1};
        quick.sortNor(arr);

//        Bubble bubble = new Bubble();
//        bubble.sort(arr);
        System.out.println(Arrays.toString(arr));
    }

    public static void main3(String[] args) {
        Heap heap = new Heap();
        int[] arr = {9, 8, 7, 116, 55, 4, 3, 222, 1};
        heap.sort2(arr);
        System.out.println(Arrays.toString(arr));
    }

    public static void main2(String[] args) {

        Select select = new Select();
        int[] arr = {9, 8, 7, 16, 55, 4, 3, 222, 1};
        select.twoWaySort(arr);
        System.out.println(Arrays.toString(arr));

    }
    public static void main1(String[] args) {
        Insert insert = new Insert();
        int[] arr = {9, 8, 7, 16, 5, 4, 3, 222, 1};
//        insert.sort(arr);
//        System.out.println(Arrays.toString(arr));

        Shell shell = new Shell();
        shell.shellSort(arr);
        System.out.println(Arrays.toString(arr));

    }
}
